<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id ="app">
    <!-- 错误的做法:这里不可以使用mustache语法 -->
    <!-- <img src="{{imgURL}}" alt="" width="100px"> -->
    <!-- <img src="imgURL" alt="" width="100px"> -->

    <!-- 正确的做法:使用v-bind指令 -->
    <img v-bind:src="imgURL" alt="" width="100px">
    <a v-bind:href="aHref">点我一下</a>

    <hr>
    <!-- 语法糖的写法 -->
    <img :src="imgURL" alt="" width="100px">
    <a :href="aHref">点我一下</a>
  </div>

  <script>
   var vm = new Vue({
    el: '#app',
    data: {
      imgURL:'https://cn.vuejs.org/images/logo.svg',
      aHref:'https://www.baidu.com'
    },
    methods: {}
   });
  </script>
</body>

</html>